<?php
namespace Users\Model;

class Admin
{
	public $super_admin_no;
	public $super_admin;
	public $super_password;
	public $super_admin_name;
	public $type_of_user;
		
	public function exchangeArray($data)
	{
		$this->super_admin_no				= (isset($data['super_admin_no']))		    ? 		$data['super_admin_no']  : null;
        $this->super_admin 					= (isset($data['super_admin'])) 			? 	   $data['super_admin'] 	 : null;
        $this->super_password  				= (isset($data['super_password']))  		? 		$data['super_password']  : null;	
        $this->super_admin_name  			= (isset($data['super_admin_name']))  		? 		$data['super_admin_name']: null;	
        $this->type_of_user  				= (isset($data['type_of_user']))  		    ? 		$data['type_of_user']    : null;	
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}